﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001E7 RID: 487
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChangeScriptEmotionScRsp : IMessage<ChangeScriptEmotionScRsp>, IMessage, IEquatable<ChangeScriptEmotionScRsp>, IDeepCloneable<ChangeScriptEmotionScRsp>, IBufferMessage
	{
		// Token: 0x1700066C RID: 1644
		// (get) Token: 0x0600160F RID: 5647 RVA: 0x0003EBCF File Offset: 0x0003CDCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChangeScriptEmotionScRsp> Parser
		{
			get
			{
				return ChangeScriptEmotionScRsp._parser;
			}
		}

		// Token: 0x1700066D RID: 1645
		// (get) Token: 0x06001610 RID: 5648 RVA: 0x0003EBD6 File Offset: 0x0003CDD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChangeScriptEmotionScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700066E RID: 1646
		// (get) Token: 0x06001611 RID: 5649 RVA: 0x0003EBE8 File Offset: 0x0003CDE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChangeScriptEmotionScRsp.Descriptor;
			}
		}

		// Token: 0x06001612 RID: 5650 RVA: 0x0003EBEF File Offset: 0x0003CDEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeScriptEmotionScRsp()
		{
		}

		// Token: 0x06001613 RID: 5651 RVA: 0x0003EBF7 File Offset: 0x0003CDF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeScriptEmotionScRsp(ChangeScriptEmotionScRsp other) : this()
		{
			this.scriptId_ = other.scriptId_;
			this.emotionType_ = other.emotionType_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001614 RID: 5652 RVA: 0x0003EC34 File Offset: 0x0003CE34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChangeScriptEmotionScRsp Clone()
		{
			return new ChangeScriptEmotionScRsp(this);
		}

		// Token: 0x1700066F RID: 1647
		// (get) Token: 0x06001615 RID: 5653 RVA: 0x0003EC3C File Offset: 0x0003CE3C
		// (set) Token: 0x06001616 RID: 5654 RVA: 0x0003EC44 File Offset: 0x0003CE44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x17000670 RID: 1648
		// (get) Token: 0x06001617 RID: 5655 RVA: 0x0003EC4D File Offset: 0x0003CE4D
		// (set) Token: 0x06001618 RID: 5656 RVA: 0x0003EC55 File Offset: 0x0003CE55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialEmotionType EmotionType
		{
			get
			{
				return this.emotionType_;
			}
			set
			{
				this.emotionType_ = value;
			}
		}

		// Token: 0x17000671 RID: 1649
		// (get) Token: 0x06001619 RID: 5657 RVA: 0x0003EC5E File Offset: 0x0003CE5E
		// (set) Token: 0x0600161A RID: 5658 RVA: 0x0003EC66 File Offset: 0x0003CE66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600161B RID: 5659 RVA: 0x0003EC6F File Offset: 0x0003CE6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChangeScriptEmotionScRsp);
		}

		// Token: 0x0600161C RID: 5660 RVA: 0x0003EC80 File Offset: 0x0003CE80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChangeScriptEmotionScRsp other)
		{
			return other != null && (other == this || (this.ScriptId == other.ScriptId && this.EmotionType == other.EmotionType && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600161D RID: 5661 RVA: 0x0003ECDC File Offset: 0x0003CEDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			if (this.EmotionType != HeartDialEmotionType.Peace)
			{
				num ^= this.EmotionType.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600161E RID: 5662 RVA: 0x0003ED53 File Offset: 0x0003CF53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600161F RID: 5663 RVA: 0x0003ED5B File Offset: 0x0003CF5B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001620 RID: 5664 RVA: 0x0003ED64 File Offset: 0x0003CF64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EmotionType != HeartDialEmotionType.Peace)
			{
				output.WriteRawTag(64);
				output.WriteEnum((int)this.EmotionType);
			}
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ScriptId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001621 RID: 5665 RVA: 0x0003EDDC File Offset: 0x0003CFDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			if (this.EmotionType != HeartDialEmotionType.Peace)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.EmotionType);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001622 RID: 5666 RVA: 0x0003EE4C File Offset: 0x0003D04C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChangeScriptEmotionScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			if (other.EmotionType != HeartDialEmotionType.Peace)
			{
				this.EmotionType = other.EmotionType;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001623 RID: 5667 RVA: 0x0003EEB0 File Offset: 0x0003D0B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001624 RID: 5668 RVA: 0x0003EEBC File Offset: 0x0003D0BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 88U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.ScriptId = input.ReadUInt32();
					}
				}
				else
				{
					this.EmotionType = (HeartDialEmotionType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04000910 RID: 2320
		private static readonly MessageParser<ChangeScriptEmotionScRsp> _parser = new MessageParser<ChangeScriptEmotionScRsp>(() => new ChangeScriptEmotionScRsp());

		// Token: 0x04000911 RID: 2321
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000912 RID: 2322
		public const int ScriptIdFieldNumber = 11;

		// Token: 0x04000913 RID: 2323
		private uint scriptId_;

		// Token: 0x04000914 RID: 2324
		public const int EmotionTypeFieldNumber = 8;

		// Token: 0x04000915 RID: 2325
		private HeartDialEmotionType emotionType_;

		// Token: 0x04000916 RID: 2326
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04000917 RID: 2327
		private uint retcode_;
	}
}
